package com.dell.chen.dao;

import com.dell.chen.pojo.Flowers;
import com.dell.chen.pojo.Users;

import java.util.List;

/**
 * @author ：ChenwithIU
 * @date ：Created in 2020/11/27 10:55
 */
public interface FlowerDao {

    //添加花品
    public int addFlowers(Flowers flowers);

    //按照id 删除
    public int deleteById(Integer id);

    //
    public int update(Flowers flowers);

    //按照id 查询  返回一个flowers
    public Flowers queryById(Integer id);

    //查询返回 flowers的集合
    public List<Flowers> queryFlowers();


    List<Flowers> queryForPageItems(int begin, int pageSize);

    Integer queryForPageTotalCount();

    Integer queryForPageTotalCountByPrice(int min, int max);

    List<Flowers> queryForPageItemsByPrice(int begin, int pageSize, int min, int max);
}
